package personal.xjl.studentdemo.service;

import personal.xjl.studentdemo.entity.Student;

import java.util.List;

public interface StudentService {
    //增加学生
    public int addStudent(Student student);
    //删除学生
    public int deleteStudent(int id);
    //查询所有学生信息
    public List<Student> getStudents();

    //查询某个特定学生信息
    Student selectById(int id);
    //修改学生信息
    int edit(Student student);

    boolean login(String username, String password);
    //分页查询
    List<Student> selectByPage(int fromIndex, int pageSize);
}
